from selenium import webdriver
from postion import options
from postion import service

url = r'https://www.baidu.com/'
driver = webdriver.Chrome(options=options,service=service)
driver.get(url)
driver.get_screenshot_as_file(r'D:\测试工具\python_pro\python_230901\homework\wangjiacheng\1229ddt框架\baidu.png)')